package com.coin900.coin.service.sbi;

import com.coin900.coin.persist.sbi.SbiProvinceVO;
import com.value.mybatis.IDaoRouter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author shui
 * @create 2017-11-21
 **/
@Service
public class SbiProvinceService implements ISbiProvinceService {

    @Override
    public void insertSbiProvince(SbiProvinceVO vo) {
        daoRouter.insert("SbiProvince.insertSbiProvince", vo);
    }

    @Override
    public void updateSbiProvince(SbiProvinceVO vo) {
        daoRouter.update("SbiProvince.SbiProvince", vo);
    }

    @Override
    public void deleteSbiProvince(SbiProvinceVO vo) {
        daoRouter.update("SbiProvince.deleteSbiProvince", vo);
    }

    @Override
    public List<SbiProvinceVO> loadSbiProvince(Map<String, Object> params) {
        return daoRouter.query("SbiProvince.loadSbiProvince", params);
    }

    @Autowired
    private IDaoRouter daoRouter;

}